import Vector2 from "./Vector2.js"

export default class PixPoint extends Vector2{
  r:number
  g:number
  b:number
  a:number
  constructor(x:number,y:number,r:number,g:number,b:number,a:number) {
    super(x,y)
    this.r = r
    this.g = g
    this.b = b
    this.a = a
  }
  isOpacity():boolean{
    return this.a === 0
  }
  
  public get string() : string {
    return `xyrgba(${this.x},${this.y},${this.r},${this.g},${this.b},${this.a},)`;
  }  
}